@import "~antd/es/style/themes/default.less";
@import "~antd/dist/antd.less";

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;

        > span {
          display: block;
        }
      }
    }
  }
}

// Compatible with IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}

// .ant-pro-global-header-layout-mix {
//   background-color: #1f8ffb !important;
// }

.ant-pro-form-login-container {
  justify-content: center;
}

.ant-pro-form-login-header {
  margin-bottom: 20px;
}

.primary {
  color: #1f8ffb;
}

.red {
  color: red;
}

.mgt-20 {
  margin-top: 20px !important;
}

.ant-descriptions-item-content .ant-form-item {
  margin-bottom: 0px !important;
}

.ant-descriptions-item-content {
  min-width: 30% !important;
  max-width: 80% !important;
}

.ant-tree .ant-tree-treenode {
  display: block;
  width: 100%;

  .ant-tree-node-content-wrapper {
    display: block;
    width: 100%;
  }
}

.pointer {
  cursor: pointer;
}
